package cn.xing.managementSystem.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author cuixing
 * @package cn.xing.managementSystem.utils
 * @class DateUtils
 * @email xing.cui@magicwindow.cn
 * @date 2018/4/27 上午12:12
 * @description
 */
public class DateUtils {

    public static final String DATE_FORMAT1 = "yyyy-MM-dd";


    public static String format(Date date, String format){
        SimpleDateFormat sdf = new SimpleDateFormat(format);
        return sdf.format(date);
    }
}